package com.shopping.www.IO;

import org.apache.commons.io.FileUtils;

import java.io.File;

public class Test {
    public static void main(String[] args) throws Exception {
        FileUtils.copyFileToDirectory(new File("D:\\idea workspace\\shopping\\src\\main\\java\\com\\shopping\\www\\IO\\1.txt"),
                new File("D:\\idea workspace\\shopping\\src\\main\\java\\com\\shopping\\www\\IO\\2.txt"));
//        Files.copy(Path.of(""),....);
    }
}
